package com.shenmazong.library.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author Qi
 * @version 1.0
 * @description TODO
 * @date 2021/9/28 8:52
 */
@Data
@Document(indexName = "db_task_theory")
public class TaskTheoryEs {

    /**
     * 理论库主键ID
     */
    @Id
    private Long theoryId;

    /**
     * 理论题目
     */
    @Field(type = FieldType.Text,analyzer = "ik_smart")
    private String theoryTitle;

    /**
     * 理论题目类型
     */
    @Field(type = FieldType.Keyword)
    private String theoryType;

    /**
     * 阶段（课程）Id
     */
    @Field(type = FieldType.Keyword)
    private Long stageId;

    /**
     * 课程名称
     */
    @Field(type = FieldType.Keyword)
    private String stageCourseName;

    /**
     * 章节ID
     */
    @Field(type = FieldType.Keyword)
    private Long chapterId;

    /**
     * 章节名称
     */
    @Field(type = FieldType.Keyword)
    private String chapterName;

    /**
     * 学院ID
     */
    private Long schoolId;
}
